function doMethod(flag)
{
	//\u59d3\u540d
   if(document.all.name.value == "" || document.all.name.value.length<1){
   alert("\u5bf9\u4e0d\u8d77,\u59d3\u540d\u4e0d\u80fd\u4e3a\u7a7a!");
   document.all.name.focus();
   return;
   }else{
   var s=document.all.name.value;
   var myreg = /^[\u4E00-\u9FA5]{1,10}$/gi;
   if(!s.match(myreg)){
        alert("\u5bf9\u4e0d\u8d77,\u540d\u5b57\u53ea\u80fd\u662f\u4e2d\u6587\u5b57\u7b26,\u4e14\u4e0d\u80fd\u8d85\u8fc710\u4e2a\u5b57!");
        return;
        }
   }
   
   
   //\u751f\u65e5
   if(document.all.birthday.value == "" || document.all.birthday.value.length<1){
   alert("\u5bf9\u4e0d\u8d77,\u59d3\u540d\u4e0d\u80fd\u4e3a\u7a7a!");
   document.all.name.focus();
   return;
   }else{
   var s=document.all.birthday.value;
   var myreg = /^((((1[6-9]|[2-9]\d)\d{2})-(0[13578]|1[02])-(0[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0[13456789]|1[012])-(0[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-02-(0[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-02-29))$/gi;
   if(!s.match(myreg)){
        alert("\u5bf9\u4e0d\u8d77,\u51fa\u751f\u65e5\u671f\u683c\u5f0f\u9519\u8bef,\u6b63\u786e\u683c\u5f0f\u4e3a:2009-08-08!");
        return;
        }
   }
   
   if(document.all.schoolName.value == "" || document.all.schoolName.value.length<1){
   alert("\u5bf9\u4e0d\u8d77, \u5b66\u6821\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a!");
   document.all.name.focus();
   return;
   }
   
   
   
   if(document.all.education.value == "" || document.all.education.value.length<1){
   alert("\u5bf9\u4e0d\u8d77,\u5b66\u5386\u4e0d\u80fd\u4e3a\u7a7a!");
   document.all.name.focus();
   return;
   }
   
   if(document.all.speciality.value == "" || document.all.speciality.value.length<1){
   alert("\u5bf9\u4e0d\u8d77,\u4e13\u4e1a\u4e0d\u80fd\u4e3a\u7a7a!");
   document.all.name.focus();
   return;
   }
   
   if(document.all.mobilphone.value == "" || document.all.mobilphone.value.length<1){
   alert("\u5bf9\u4e0d\u8d77,\u624b\u673a\u4e0d\u80fd\u4e3a\u7a7a!");
   document.all.name.focus();
   return;
   }
   if(document.all.telephone.value == "" || document.all.telephone.value.length<1){
   alert("\u5bf9\u4e0d\u8d77,\u7535\u8bdd\u4e0d\u80fd\u4e3a\u7a7a!");
   document.all.name.focus();
   return;
   }
   
   if(document.all.nowAddress.value == "" || document.all.nowAddress.value.length<1){
   alert("\u5bf9\u4e0d\u8d77,\u8054\u7cfb\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a!");
   document.all.name.focus();
   return;
   }
   
   if(document.all.ssubstation.length<1){
      alert(" 求职意向不能为空！");
      return false;
   }
   
   if(document.all.regAddrPro.value.length<1 || document.all.regAddrCity.value.length<1){
      alert(" 户口所在地地址不能为空！");
      return false;
   }
   
   
   
       document.all.stationList.value="";
       document.all.stationTextList.value="";
       //去空格表达式
       String.prototype.Trim=function(){   
        return   this.replace(/^\s*|\s*$/g,'')   
       } 
      
      //岗位信息
      for(var i=0;i<document.all.ssubstation.length;i++){
      document.all.stationList.value+=document.all.ssubstation.options[i].value + ",";
      document.all.stationTextList.value+=document.all.ssubstation.options[i].text + ",";
      }
      
      //连接省和市
      document.all.registeredAddress.value=document.all.regAddrPro.value.Trim()+" "+document.all.regAddrCity.value.Trim();

   document.all.method.value =flag;
   document.forms[0].submit();
   
}
